﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/CompanyConsole.Master" Inherits="System.Web.Mvc.ViewPage<ProductMGModels>" %>
<asp:Content ID="Content2" ContentPlaceHolderID="HeadHolder" runat="server">
<script type="text/javascript" src="/Scripts/xheditor/xheditor-1.1.7-zh-cn.min.js"></script>
<script type="text/javascript" src="/Scripts/DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/Scripts/xheditor/ConfigXheditor.js"></script>
<script type="text/javascript">
    $(function () {
        myAccordion.showThisHideOpen(contents[1]);
        $('#tarContent').xheditor(editorConfig);
        $('#txtDate').focus(function () {
            WdatePicker({
                skin: 'default',
                oncleared: function () {
                    $(this).blur();
                },
                onpicked: function () {
                    $(this).blur();
                }
            })
        });
    });
</script>
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="BodyHolder" runat="server">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td width="17" height="29" valign="top" background="/Content/images/Console/mail_leftbg.gif">
                <img src="/Content/images/Console/left-top-right.gif" width="17" height="29" />
            </td>
            <td width="935" height="29" valign="top" background="/Content/images/Console/content-bg.gif">
                <table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg"
                    id="table2">
                    <tr>
                        <td height="31">
                            <div class="titlebt">
                                企业动态</div>
                        </td>
                    </tr>
                </table>
            </td>
            <td width="16" valign="top" background="/Content/images/Console/mail_rightbg.gif">
                <img src="/Content/images/Console/nav-right-bg.gif" width="16" height="29" />
            </td>
        </tr>
        <tr>
            <td height="71" valign="middle" background="/Content/images/Console/mail_leftbg.gif">
                &nbsp;
            </td>
            <td valign="top" bgcolor="#F7F8F9">
                <table width="100%" height="138" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td height="13" valign="top">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td valign="top">
                            <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td class="left_txt" style="border-bottom:1px solid #aaa;">
                                        当前位置：产品详细管理
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <table style="margin-top:10px;" width="100%" height="55" border="0" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td width="10%" height="55" valign="middle">
                                                    <img src="/Content/images/Console/title.gif" width="54" height="55">
                                                </td>
                                                <td width="90%" valign="top">
                                                    <span class="left_txt2">在这里，您可以编辑您的产品详细信息<span
                                                        class="left_txt2">！</span><br/>
                                                    <span class="left_txt2">通常</span><span class="left_txt3">您可以对已经发布的产品进行信息进行修正</span><span class="left_txt2">。</span>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <table style="margin-top:10px;" width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="nowtable">
                                            <tr>
                                                <td class="left_bt2" style="width:35%;">
                                                    &nbsp;&nbsp;&nbsp;&nbsp;产品详细管理
                                                    
                                                </td>
                                                <td>
                                                 <td>
                                                    <%=Model.SuccessMessage %>
                                                    <%:Html.ValidationSummary(true,"") %>
                                                </td>
                                                </td>
                                                <td align="right" style="width:35%;">
                                                    <a href="/ProductAddMG" style="margin-right:30px;">
                                                    <img name="add" src="/Content/images/edit_add.png" style="border:none; margin-top:5px;"/>
                                                    添加产品
                                                    </a>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>  
                                        <form action="/ProductEditMG" method="post" enctype="multipart/form-data">
                                            <input type="hidden" name="Pid" value="<%:Model.Pid %>" />
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr height="30">
                                                    <td width="5%">&nbsp;</td>
                                                    <td width="10%">标题：</td>
                                                    <td width="20%"><input type="text" name="Title" style="width:300px;" value="<%:Model.Title %>" /></td>
                                                     <%if (!Model.IsValid)
                                                      {%>
                                                      <td style="color:Red;"><%:Html.ValidationMessageFor(c=>c.Title) %></td>
                                                    <%}
                                                      else
                                                      { %>
                                                    <td style="color:#999;"></td>
                                                    <%} %>
                                                </tr>
                                                <tr height="30">
                                                    <td width="5%">&nbsp;</td>
                                                    <td width="10%">图片：</td>
                                                    <td width="20%"><input type="file" name="URL" style="width:300px;" /></td>
                                                     <%if (!Model.IsValid)
                                                      {%>
                                                      <td style="color:Red;"><%:Html.ValidationMessageFor(c=>c.URL) %></td>
                                                    <%}
                                                      else
                                                      { %>
                                                    <td style="color:#999;">请选择jpg,png格式的图片，并且不大于5MB(如果您不需要改变现有图片请不要填写该项)</td>
                                                    <%} %>
                                                </tr>
                                                <tr height="30">
                                                    <td>&nbsp;</td>
                                                    <td>产品来源：</td>
                                                    <td><input type="text" name="From" style="width:300px;" value="<%:Model.From %>" /></td>
                                                    <%if (!Model.IsValid)
                                                      {%>
                                                      <td style="color:Red;"><%:Html.ValidationMessageFor(c=>c.From) %></td>
                                                    <%}
                                                      else
                                                      { %>
                                                    <td style="color:#999;">(选填)如果您的产品来源于其他供应商，您可以在这里进行备注</td>
                                                    <%} %>
                                                </tr>
                                                <tr height="30">
                                                    <td>&nbsp;</td>
                                                    <td>编辑(作者)：</td>
                                                    <td><input type="text" name="Author" style="width:300px;" value="<%:Model.Author %>" /></td>
                                                    <%if (!Model.IsValid)
                                                      {%>
                                                      <td style="color:Red;"><%:Html.ValidationMessageFor(c=>c.Author) %></td>
                                                    <%}
                                                      else
                                                      {%>
                                                      <td style="color:#999;"></td>
                                                      <%} %>
                                                </tr>
                                                <tr height="30">
                                                    <td>&nbsp;</td>
                                                    <td>发布时间：</td>
                                                    <td><input type="text" style="width:300px;" name="Date" id="txtDate" readonly="readonly" value="<%:Model.Date %>"/></td>
                                                    <td>&nbsp;</td>
                                                </tr>
                                                <tr height="30">
                                                    <td>&nbsp;</td>
                                                    <td>浏览量：</td>
                                                    <td><input type="text" name="Hit" style="width:300px;" value="<%:Model.Hit %>" /></td>
                                                    <%if (!Model.IsValid)
                                                      {%>
                                                      <td style="color:Red;"><%:Html.ValidationMessageFor(c=>c.Hit) %></td>
                                                    <%}
                                                      else
                                                      {%>
                                                      <td style="color:#999;">(选填)企盟建议您经历不要人为控制此数值</td>
                                                      <%} %>
                                                </tr>
                                                <tr>
                                                    <td>&nbsp;</td>
                                                    <td>内容：</td>
                                                    <td colspan="2"><textarea name="Content" id="tarContent" style="height:300px; width:600px;"><%=Model.Content%></textarea></td>
                                                </tr>
                                                <%if(!Model.IsValid)
                                                  { %>
                                                  <tr>
                                                    <td></td>
                                                    <td colspan="3"><%:Html.ValidationMessageFor(c=>c.Content) %></td>
                                                  </tr>
                                                  <%} %>
                                                <tr height="30">
                                                    <td colspan="2"></td>
                                                    <td colspan="2">
                                                        <input type="submit" value="提交" />
                                                        <input type="button" value="返回" onclick="javascript:location.href='/ProductMG';" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </form>
                                    </td>
                                </tr>
                            </table>
                           
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td valign="middle" background="/Content/images/Console/mail_leftbg.gif">
                <img src="/Content/images/Console/buttom_left2.gif" width="17" height="17" />
            </td>
            <td height="17" valign="top" background="/Content/images/Console/buttom_bgs.gif">
                <img src="/Content/images/Console/buttom_bgs.gif" width="17" height="17" />
            </td>
            <td background="/Content/images/Console/mail_rightbg.gif">
                <img src="/Content/images/Console/buttom_right2.gif" width="16" height="17" />
            </td>
        </tr>
    </table>
</asp:Content>
